package cn.fx.framework.exception;

import cn.fx.framework.cons.ErrorCodeMessage;

/**
 * 增加 修改数据时违反了唯一约束键时抛出的数据重复异常
 * @author ljh
 * @date 2017/12/17 17:40
 */
public class EntityDoubleException extends BaseException {
    private String tableName;
    private String ukDisplayName;
    public EntityDoubleException(String tableName, String ukDisplayName, String message) {
        super(ErrorCodeMessage.DATABASE_TABLE_UNIQUE_EXCEPTION.getCode(), message +
                "@{" + ErrorCodeMessage.DATABASE_TABLE_UNIQUE_EXCEPTION.getMessage() + "}");
        this.tableName = tableName;
        this.ukDisplayName = ukDisplayName;
    }
    public String getTableName() {
        return tableName;
    }

    public String getUkDisplayName() {
        return ukDisplayName;
    }
}
